package com.dynamixsoftware.printershare.smb.util;

public class Dumper
{
  private static final char[] HEX_DIGITS = { 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 65, 66, 67, 68, 69, 70 };
  
  private static void toHexChars(int paramInt1, char[] paramArrayOfChar, int paramInt2, int paramInt3)
  {
    while (paramInt3 > 0)
    {
      int i = -1 + (paramInt2 + paramInt3);
      if (i < paramArrayOfChar.length) {
        paramArrayOfChar[i] = HEX_DIGITS[(paramInt1 & 0xF)];
      }
      if (paramInt1 != 0) {
        paramInt1 >>>= 4;
      }
      paramInt3--;
    }
  }
  
  public static String toHexString(int paramInt1, int paramInt2)
  {
    char[] arrayOfChar = new char[paramInt2];
    toHexChars(paramInt1, arrayOfChar, 0, paramInt2);
    return new String(arrayOfChar);
  }
  
  public static String toHexString(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
  {
    char[] arrayOfChar = new char[paramInt2];
    int i;
    int j;
    int k;
    label21:
    int m;
    if (paramInt2 % 2 == 0)
    {
      i = paramInt2 / 2;
      j = 0;
      k = 0;
      if (j >= i) {
        break label104;
      }
      m = k + 1;
      arrayOfChar[k] = HEX_DIGITS[(0xF & paramArrayOfByte[j] >> 4)];
      if (m != arrayOfChar.length) {
        break label77;
      }
    }
    label77:
    label104:
    for (;;)
    {
      return new String(arrayOfChar);
      i = 1 + paramInt2 / 2;
      break;
      k = m + 1;
      arrayOfChar[m] = HEX_DIGITS[(0xF & paramArrayOfByte[j])];
      j++;
      break label21;
    }
  }
}


/* Location:           C:\Users\Admin\Desktop\Decompiler\JAD\jd-gui-0.3.6.windows\classes_dex2jar.jar
 * Qualified Name:     com.dynamixsoftware.printershare.smb.util.Dumper
 * JD-Core Version:    0.7.0.1
 */